from rest_framework.status import HTTP_400_BAD_REQUEST, HTTP_404_NOT_FOUND


ERROR_GROUP_DOES_NOT_EXIST = (
    'ERROR_GROUP_DOES_NOT_EXIST',
    HTTP_404_NOT_FOUND,
    'The requested group does not exist.'
)
ERROR_USER_INVALID_GROUP_PERMISSIONS_ERROR = (
    'ERROR_USER_INVALID_GROUP_PERMISSIONS_ERROR',
    HTTP_400_BAD_REQUEST,
    'You need {e.permissions} permissions.'
)
ERROR_USER_NOT_IN_GROUP = 'ERROR_USER_NOT_IN_GROUP'
BAD_TOKEN_SIGNATURE = 'BAD_TOKEN_SIGNATURE'
EXPIRED_TOKEN_SIGNATURE = 'EXPIRED_TOKEN_SIGNATURE'
ERROR_HOSTNAME_IS_NOT_ALLOWED = (
    'ERROR_HOSTNAME_IS_NOT_ALLOWED',
    HTTP_400_BAD_REQUEST,
    'Only the hostname of the web frontend is allowed.'
)
